//
//  LatestCellModel.m
//  夺宝吧
//
//  Created by xiaocai on 15/7/7.
//  Copyright (c) 2015年 FangYuan. All rights reserved.
//

#import "LatestCellModel.h"

@interface LatestCellModel ()
{
  //记录开始时间
    NSInteger start_time;
}
@end
@implementation LatestCellModel


- (void)setPdc_time_count:(NSInteger)pdc_time_count
{
    _pdc_time_count = pdc_time_count;
    start_time = (NSInteger)[[NSDate date] timeIntervalSince1970];
    
}
- (NSInteger)pdc_real_time
{
    NSInteger time = (NSInteger)[[NSDate date] timeIntervalSince1970];
    _pdc_real_time = _pdc_time_count - (time - start_time);
    if (_pdc_real_time<=0) {
        return 0;
    }
    return _pdc_real_time;
}

@end
